
package FunctiiElementare;

import Visitor.Visitor;
import Functii.*;

public class Ln extends Functie {
    public static String concatTermens(String a){
		String aux;
		int nrP;
		nrP=a.charAt(0)=='(' ? 0:2;
		aux="ln";
		if(nrP!=0)
			aux+="(";
		aux+=a;
		if(nrP!=0)
			aux+=")";
		return aux;
	}

	public void acceptVisitor(Visitor v){
		v.visit(this);
	}

	public String concatTermeni(String a){
		String aux;
		int nrP;
		nrP=a.charAt(0)=='(' ? 0:2;
		aux="ln";
		if(nrP!=0)
			aux+="(";
		aux+=a;
		if(nrP!=0)
			aux+=")";
		return aux;
	}
}
